import axios from 'axios'

const instance = axios.create({
  baseURL: `http://${process.env.HOST || '127.0.0.1'}:${process.env.PORT || 3000}`,
  timeout: 2000,
  headers: {
    // 'X-Requested-With': 'XMLHttpRequest',
    // 'Content-Type': 'application/json; charset=UTF-8',
    // 'Access-Control-Allow-Origin': '*',
    // 'Content-Type': 'application/x-www-form-urlencoded'
  }
})

export default instance
